package listbyorder.access101_200.test172;

/**
 * @author code_yc
 * @version 1.0
 * @date 2020/6/14 14:34
 */
public class Solution2 {

    public int trailingZeroes(int n) {
        int count = 0;
        while (n > 0) {
            count += n / 5;
            n /= 5;
        }
        return count;
    }
}
